package cn.DesignModel.observer02;

/**
 * @author: lizemin
 * @version: 1.0
 * 微信用户是观察者，里面实现了更新的方法
 */
public class WeixinUser implements Observer {
    // 微信用户名
    private String name;
    public WeixinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }


}
